package com.cjw.pojo.entity.database;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "operation_log")
@Data
@ApiModel("日志")
public class OperationLog {
    @Id
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户id")
    private String userCode;

    @ApiModelProperty("登录ip")
    private String ip;

    @ApiModelProperty("请求类型")
    private String type;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("模型")
    private String model;

    @ApiModelProperty("添加时间")
    private Date operationTime;

    @ApiModelProperty("请求结果")
    private String result;
}
